import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.List;
/**
 * Write a description of class MousePointer here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class MousePointer extends Actor
{
    /**
     * Act - do whatever the MousePointer wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public MousePointer(){
        setImage(new GreenfootImage(1,1));
    }
    public void act() 
    {
        
        
        
        try{
        setLocation(Greenfoot.getMouseInfo().getX(),Greenfoot.getMouseInfo().getY()) ;
        }catch(NullPointerException e){
        }
    }
    public boolean isTouching(java.lang.Class cls){
    return super.isTouching(cls);
    }
    public Actor getOneIntersectingObject(java.lang.Class cls){
    return super.getOneIntersectingObject(cls);
    }
    public List getIntersectingObjects(java.lang.Class cls){
    return super.getIntersectingObjects(cls);
    }

}
